/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: nu uc
 * License Type: Evaluation
 */
package org.testis.orm.classes;

import org.orm.*;

public class T_test_teststepsSetCollection extends org.orm.util.ORMSet {
    public T_test_teststepsSetCollection(Object owner,
	    org.orm.util.ORMAdapter adapter, int ownerKey, int targetKey,
	    int collType) {
	super(owner, adapter, ownerKey, targetKey, true, collType);
    }

    public T_test_teststepsSetCollection(Object owner,
	    org.orm.util.ORMAdapter adapter, int ownerKey, int collType) {
	super(owner, adapter, ownerKey, -1, false, collType);
    }

    /**
     * Return an iterator over the persistent objects
     * 
     * @return The persisten objects iterator
     */
    public java.util.Iterator getIterator() {
	return super.getIterator(_ownerAdapter);
    }

    /**
     * Add the specified persistent object to ORMSet
     * 
     * @param value
     *            the persistent object
     */
    public void add(T_test_teststeps value) {
	if (value != null) {
	    super.add(value, value._ormAdapter);
	}
    }

    /**
     * Remove the specified persistent object from ORMSet
     * 
     * @param value
     *            the persistent object
     */
    public void remove(T_test_teststeps value) {
	super.remove(value, value._ormAdapter);
    }

    /**
     * Return true if ORMSet contains the specified persistent object
     * 
     * @param value
     *            the persistent object
     * @return True if this contains the specified persistent object
     */
    public boolean contains(T_test_teststeps value) {
	return super.contains(value);
    }

    /**
     * Return an array containing all of the persistent objects in ORMSet
     * 
     * @return The persistent objects array
     */
    public T_test_teststeps[] toArray() {
	return (T_test_teststeps[]) super.toArray(new T_test_teststeps[size()]);
    }

    /**
     * Return an sorted array containing all of the persistent objects in ORMSet
     * 
     * @param propertyName
     *            Name of the property for sorting:
     *            <ul>
     *            <li>id</li>
     *            <li>name</li>
     *            <li>description</li>
     *            </ul>
     * @return The persistent objects sorted array
     */
    public T_test_teststeps[] toArray(String propertyName) {
	return toArray(propertyName, true);
    }

    /**
     * Return an sorted array containing all of the persistent objects in ORMSet
     * 
     * @param propertyName
     *            Name of the property for sorting:
     *            <ul>
     *            <li>id</li>
     *            <li>name</li>
     *            <li>description</li>
     *            </ul>
     * @param ascending
     *            true for ascending, false for descending
     * @return The persistent objects sorted array
     */
    public T_test_teststeps[] toArray(String propertyName, boolean ascending) {
	return (T_test_teststeps[]) super.toArray(new T_test_teststeps[size()],
		propertyName, ascending);
    }

    protected PersistentManager getPersistentManager()
	    throws PersistentException {
	return org.testis.orm.manager.TestisDbPersistentManager.instance();
    }

}
